package pe.com.grupobbva.ohc.hy20;

public class OHC_HY20_PortTypeProxy implements pe.com.grupobbva.ohc.hy20.OHC_HY20_PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.ohc.hy20.OHC_HY20_PortType oHC_HY20_PortType = null;
  
  public OHC_HY20_PortTypeProxy() {
    _initOHC_HY20_PortTypeProxy();
  }
  
  public OHC_HY20_PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initOHC_HY20_PortTypeProxy();
  }
  
  private void _initOHC_HY20_PortTypeProxy() {
    try {
      oHC_HY20_PortType = (new pe.com.grupobbva.ohc.hy20.OHC_HY20_ServiceLocator()).getOHC_HY20_Port();
      if (oHC_HY20_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)oHC_HY20_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)oHC_HY20_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (oHC_HY20_PortType != null)
      ((javax.xml.rpc.Stub)oHC_HY20_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.ohc.hy20.OHC_HY20_PortType getOHC_HY20_PortType() {
    if (oHC_HY20_PortType == null)
      _initOHC_HY20_PortTypeProxy();
    return oHC_HY20_PortType;
  }
  
  public pe.com.grupobbva.ohc.hy20.CtConOhcHY20Rs callHY20(pe.com.grupobbva.ohc.hy20.CtConOhcHY20Rq conOhcHY20Rq) throws java.rmi.RemoteException{
    if (oHC_HY20_PortType == null)
      _initOHC_HY20_PortTypeProxy();
    return oHC_HY20_PortType.callHY20(conOhcHY20Rq);
  }
  
  
}